package person.bing.fbcloud.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import person.bing.fbcloud.common.core.util.R;
import person.bing.fbcloud.service.SysRouteDetailService;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mengfb
 * @since 2020-03-13
 */
@RestController
@RequestMapping("/sysroutedetail")
public class SysRouteDetailController {
    @Autowired
    private SysRouteDetailService sysRouteDetailService;

    /**
     * 查询所有路由配置信息
     * @return
     */
    @PostMapping("/routeDetails")
    public R routeDetails(){
        return new R(sysRouteDetailService.list());
    }

}
